#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int number[10];
	int max;
	max = number[0];
	for (int i = 0; i < 10; i++)
	{
		scanf("%d", &number[i]);
		if (number[i] > max)
		{
			max = number[i];
		}
	}
	printf("%d", max);
	return 0;
}